package org.xy.boot.base.system;

import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

import com.xy.framework.util.HttpUtils;

//0ede38815fa5f39ef1c0cde6faf2e1ed
public class Text {
	public static void main(String[] args) throws UnsupportedEncodingException {
		/*HttpUtils.doGet(
				"https://api.weixin.qq.com/sns/jscode2session?appid=wx895b629ee0340df3&secret=0ede38815fa5f39ef1c0cde6faf2e1ed&js_code=023xVCUW1Bagt01tFZSW1f0GUW1xVCUa&grant_type=authorization_code",
				"utf-8");

		HttpUtils.doGet(
				"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx3de2344974acf627&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect",
				"utf-8");*/
		//https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET
		//https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token=ACCESS_TOKEN
		/*System.out.println(HttpUtils.doGet(
				"https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wx52c9086c72522748&secret=ff1ffaace9258d705c5aea36c292f7ab",
				"utf-8"));*/
		
		//25_3B5M9Dx9J45cyY1PSwMKrj44Uj9PSUOo_cQitFyCAcVZurRCNY31rQyk7MyksS8VtdEjaWSWEq7fHiuLzjzZu_pechWQj7Xg32VyqhVaGIPfKZ3xqX0ylQ3gI53cCh3Vol6OvBT0VnyHnCf0HIRfAFAYZI
		List<NameValuePair> urlParameters = new ArrayList<>();
		urlParameters.add(new BasicNameValuePair("access_token", "25_4rfTqxas4AtQhw4fc513_dJ6MVLioY_XnyO62PNmG-5qJ_yRNi8VSzHOlYWUkqqIEWgvLx0eMRpVJmt_LFEKgW_6WI6OMBfctkJwEZgy048BAgMCatHfljX-BPl7fy5G-wMroydF64Uh32LwNKVaAHATQB"));
		urlParameters.add(new BasicNameValuePair("touser", "wx52c9086c72522748"));
		urlParameters.add(new BasicNameValuePair("weapp_template_msg", "{template_id:'z1YmCP7GQGf1EXTc17hlgTsaA0Cqf7G_urcHfA4S_4I'}"));
		//HttpUtils.doPost("https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token=25_4rfTqxas4AtQhw4fc513_dJ6MVLioY_XnyO62PNmG-5qJ_yRNi8VSzHOlYWUkqqIEWgvLx0eMRpVJmt_LFEKgW_6WI6OMBfctkJwEZgy048BAgMCatHfljX-BPl7fy5G-wMroydF64Uh32LwNKVaAHATQB", "utf-8", urlParameters);
		HttpUtils.doGet("https://gitee.com/gvp/all","utf-8");
	}
}
